package com.rc.evcharger.mapper.ticket;

import com.rc.evcharger.common.base.BaseMapper;
import com.rc.evcharger.model.ticket.MemberTicket;
import com.rc.evcharger.model.ticket.MemberTicketExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface MemberTicketMapper extends BaseMapper<Long, MemberTicket, MemberTicketExample> {

    MemberTicket selectByOrderInfoAndTicketType(@Param(value = "ticketSuitType") String ticketSuitType,
                                                @Param(value = "discountType") String discountType,
                                                @Param(value = "tenantCode") String tenantCode,
                                                @Param(value = "elecStationId") Long elecStationId,
                                                @Param(value = "memberId") Long memberId,
                                                @Param(value = "money") BigDecimal money);


    List<MemberTicket> listByOrderInfoAndTicketType(@Param(value = "payAmount") BigDecimal payAmount,
                                                    @Param(value = "serviceMoney") BigDecimal serviceAmount,
                                                    @Param(value = "memberTicketIds") List<Long> memberTicketIds);


}